package a.f.l.a;

import a.c.e;
import a.c.j;
import a.c.k;
import a.f.ad;
import a.f.bd;

import java.util.*;

class gb
{
  static final Object a = "y.layout.router.polyline.NodePortsInfo.NODE_PORTS_INFO_DPKEY";
  private final Map b;
  private bd c;
  
  private gb(bd parambd)
  {
    this.c = parambd;
    this.b = new HashMap();
  }
  
  public static gb a(e parame)
  {
    boolean bool = sb.e;
    j localj = (j)parame.g().c(a);
    gb localgb = (bool) || (localj != null) ? (gb)localj.get(parame) : null;
    if (!bool) {
      if (localgb == null)
      {
        k localk = parame.g().c(bd.a);
        if ((bool) || (localk != null))
        {
          bd localbd = (bd)localk.get(parame);
          if (!bool)
          {
            if (localbd != null)
            {
              if (bool) {
                break label122;
              }
              localgb = new gb(localbd);
            }
          }
          else if (localj != null) {
            localj.a(parame, localgb);
          }
        }
      }
    }
    label122:
    return localgb;
  }
  
  public List a()
  {
    boolean bool = sb.e;
    int i = sb.d;
    ArrayList localArrayList = new ArrayList();
    if ((bool) || (this.c != null))
    {
      Iterator localIterator = this.c.b();
      label117:
      label119:
      do
      {
        ad localad;
        Integer localInteger;
        do
        {
          if (!localIterator.hasNext()) {
            return localArrayList;
          }
          bd.e_ locale_ = (bd.e_)localIterator.next();
          localad = locale_.a();
          localInteger = (Integer)this.b.get(localad);
          if (bool) {
            break label117;
          }
          if (localInteger == null) {
            break;
          }
          if (bool) {
            break label119;
          }
        } while (locale_.b() <= localInteger.intValue());
        localArrayList.add(localad);
      } while (i == 0);
    }
    return localArrayList;
  }
  
  public List b()
  {
    boolean bool = sb.e;
    int i = sb.d;
    ArrayList localArrayList = new ArrayList();
    if ((bool) || (this.c != null))
    {
      Iterator localIterator = this.c.b();
      do
      {
        ad localad;
        Integer localInteger;
        do
        {
          bd.e_ locale_;
          do
          {
            if (!localIterator.hasNext()) {
              break;
            }
            locale_ = (bd.e_)localIterator.next();
            localad = locale_.a();
            localInteger = (Integer)this.b.get(localad);
          } while (localInteger == null);
          if (bool) {
            break;
          }
        } while (locale_.b() > localInteger.intValue());
        if (bool) {
          break label123;
        }
        localArrayList.add(localad);
      } while (i == 0);
    }
    label123:
    return localArrayList;
  }
  
  public void a(ad paramad)
  {
    boolean bool = sb.e;
    if (!bool) {
      if (this.b.containsKey(paramad))
      {
        Integer localInteger = (Integer)this.b.get(paramad);
        if (bool) {
          break label87;
        }
        this.b.put(paramad, new Integer(localInteger.intValue() + 1));
        if (sb.d == 0) {
          return;
        }
      }
    }
    label87:
    this.b.put(paramad, new Integer(1));
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.f.l.a.gb

 * JD-Core Version:    0.7.0.1

 */